
package com.sbtr.business.calibration.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sbtr.business.calibration.entity.CalibrationImgDetect;
import com.sbtr.business.calibration.entity.CalibrationObjectDetectionImgBox;
import com.sbtr.business.calibration.mapper.CalibrationObjectDetectionImgBoxMapper;
import com.sbtr.business.calibration.service.ICalibrationObjectDetectionImgBoxService;
import com.sbtr.open.calibration.dto.CalibrationImgDetectDto;
import com.sbtr.util.BeanCopyUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


/**
 * <p>
 *
 * </p>
 *
 * @author guojf6

 */
@Transactional
@Service
public class CalibrationObjectDetectionImgBoxServiceImpl extends ServiceImpl<CalibrationObjectDetectionImgBoxMapper, CalibrationObjectDetectionImgBox>
		implements ICalibrationObjectDetectionImgBoxService {

	private static final Logger logger = LoggerFactory.getLogger(CalibrationObjectDetectionImgBoxServiceImpl.class);




	@Override
	public List<CalibrationImgDetectDto> findCompletedByCalibrationIdAndFinisher(String finisher, Long calibrationId){

		List<CalibrationImgDetect> list = baseMapper.findCompletedByCalibrationIdAndFinisher(finisher, calibrationId);
		return BeanCopyUtils.copyProperties(list, CalibrationImgDetectDto.class);
	}

	@Override
	public List<CalibrationImgDetectDto> findCompletedByCalibrationId( Long calibrationId){

		List<CalibrationImgDetect> list = baseMapper.findCompletedByCalibrationId( calibrationId);
		return BeanCopyUtils.copyProperties(list, CalibrationImgDetectDto.class);
	}



}